package com.sunyard.iccs.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.ibatis.annotations.Param;
import org.apache.log4j.Logger;
//import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping("/api")
public class BusinessController {
	
	private static final Logger log = Logger.getLogger(BusinessController.class);
//	
	@RequestMapping("/register")
	@ResponseBody
//	@RequestMapping(value="/register", method = RequestMethod.GET) 
	public void register(@Param("acceptInfoXml")String acceptInfoXml, @Param("attrXml")String attrXml,
			HttpSession session, HttpServletRequest request1,HttpServletResponse res)
	{
		System.out.println("register....");
	}
	
	@RequestMapping("/patchAccept")
	public void patchAccept(@Param("patchEndXml")String patchEndXml, @Param("attrXml")String attrXml,
			HttpSession session, HttpServletRequest request1,HttpServletResponse res)
	{
		System.out.println("patchAccept....");
	}

}
